import com.bit.www.text1;

public class nm1 {
    public static void main(String[] args){
        text1 text=new text1();
        System.out.println(text.a);
        student student1=new student();//对象实例化的正确使用；
        student1.name="zhuangsan";
        student1.age=14;
        student1.number=10086;
        student student2=new student();
        student2.student("wangwu",15,123456);
        System.out.println("测试构造方法的正确使用");
        System.out.println(student2.name);
        System.out.println(student2.age);
        System.out.println(student2.number);
        System.out.println("成员变量的初始化使用");
        System.out.println(student1.name);
        System.out.println(student1.age);
        System.out.println(student1.number);
    }
}
class student{
    public String name;
    public int age;
    public int number;
    public void eat(){
        System.out.println(name+"正在吃饭");
    }
    public  void student(String name , int age , int number){
        this.age=age;
        this.name=name;
        this.number=number;

    }
}
